package homework.homework01;

public class People {
    private String name;
    private String workId;
    private double salary;

    public People() {
    }

    public People(String name, String workId, double salary) {
        this.name = name;
        this.workId = workId;
        this.salary = salary;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWorkId() {
        return workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    //行为work
    public void work() {
        System.out.println("工作");
    }

    @Override
    public String toString() {
        return
                "name='" + name + '\'' +
                        ", workId='" + workId + '\'' +
                        ", salary=" + salary;
    }
}
